]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
switcherPopup: Rename _onItemEnter() to _onItemMotion()
authorJonas Dreßler <verdre@v0yd.nl>
Wed, 12 Jan 2022 10:36:41 +0000 (11:36 +0100)
committerMarge Bot <marge-bot@gnome.org>
Wed, 12 Jan 2022 12:25:19 +0000 (12:25 +0000)
Since commit e94de67b, this is called by a motion-event handler instead
of enter-event, so let's adjust the function name.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2097>

js/ui/altTab.js
js/ui/switcherPopup.js

index 6af9380edc4bde532fb310aa5185907f79727014..26c92de0c79f9f1f2f6cedfa1032a9945ecd2293 100644 (file)
@@ -794,9 +794,9 @@ class AppSwitcher extends SwitcherPopup.SwitcherList {
         }
     }
 
-    // We override SwitcherList's _onItemEnter method to delay
+    // We override SwitcherList's _onItemMotion method to delay
     // activation when the thumbnail list is open
-    _onItemEnter(item) {
+    _onItemMotion(item) {
         const index = this._items.indexOf(item);
 
         if (this._mouseTimeOutId != 0)
index b1e2730068f3f810011480e1599d2a37be6b2397..ccc8b0fb0eb293f152c77a5f9328f8f11dfa66d6 100644 (file)
@@ -428,7 +428,7 @@ var SwitcherList = GObject.registerClass({
         this._list.add_actor(bbox);
 
         bbox.connect('clicked', () => this._onItemClicked(bbox));
-        bbox.connect('motion-event', () => this._onItemEnter(bbox));
+        bbox.connect('motion-event', () => this._onItemMotion(bbox));
 
         bbox.label_actor = label;
 
@@ -455,7 +455,7 @@ var SwitcherList = GObject.registerClass({
         this._itemActivated(this._items.indexOf(item));
     }
 
-    _onItemEnter(item) {
+    _onItemMotion(item) {
         // Avoid reentrancy
         if (item !== this._items[this._highlighted])
             this._itemEntered(this._items.indexOf(item));